package com.hspedu;

/**
 * @Author Stringzhua
 * @Date 2024/4/28 18:40
 * description:
 */
public class Cat {
    private String name = "招财猫";
    public int age = 10;//public

    public Cat() {
    }//无参构造器

    public Cat(String name) {
        this.name = name;
    }

    public void hi() {//常用方法
//        System.out.println("hi" + name);
    }

    public void cry() {
        System.out.println(name + "喵喵叫");
    }
}
